package com.giscloud.amp.service.auth;

import com.giscloud.amp.entity.AmpStaffRole;
import com.giscloud.amp.entity.dto.AmpStaffRoleDTO;
import com.giscloud.amp.entity.vo.AmpStaffRoleVO;
import com.giscloud.datasource.page.PageInfo;

import java.util.List;
import java.util.Set;

/**
 * @Author:gxd
 * @Description:
 * @Date: 11:03 2018/2/24
 * @Modified By:
 */
public interface AmpStaffRoleService {
     PageInfo getAmpStaffRoleList(AmpStaffRoleDTO ampStaffRoleDTO);

     AmpStaffRoleVO getAmpStaffRoleByCondition(AmpStaffRoleDTO ampStaffRoleDTO);

     PageInfo getAmpStaffRoleListByDTO(AmpStaffRoleDTO ampStaffRoleDTO);

     int insert(AmpStaffRoleDTO ampStaffRoleDTO);

     int update(AmpStaffRoleDTO ampStaffRoleDTO);

     int delete(Long relId);

     Set<String> getRoleCodeByCondition(String staffId);

     int batchInsert(List<AmpStaffRole> list);

     /**
      * 批量更新
      * @param list
      * @return
      */
     int batchUpdate(List<AmpStaffRole> list);
}
